﻿@model IEnumerable<TextRPG.Models.Inventory>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
<table>
    <tr>
        <th>
            ID
        </th>
        <th>
            InventorySize
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.InventoryID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.InventorySize)
        </td>
        <td>
            @Html.ActionLink("Details", "Details", new { id = item.InventoryID }) 
            @Html.ActionLink("AddItem", "AddItem", new { id = item.InventoryID }) 
        </td>
    </tr>
}

</table>
